<?php

class Antz_Form_Components_ShortTag extends Antz_Form_Component
{
    protected $tagname = 'p';
    protected $type = 'ShortTag';

    public function __construct($tagname, $isXhtml=false){
        $this->tagname = $tagname;
        $this->isXhtml = $isXhtml;
    }

    public function render(){
        $endTag = ($this->isXhtml()) ? '/>' : '>';
        return '<'.$this->tagname.$this->renderClasses().$endTag;
    }

}
